package com.java.demo.controller;

import com.java.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-01
 * Time: 15:13
 */

/**
 * 老马的业务
 */
@Controller
public class UserController2 {
    @Autowired
    private User user;

    public void doMethod() {
        User user2 = user;
        user2.setName("李四");
        System.out.println(user2);
    }
}
